package com.tcm.entity.dto.param;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.util.Date;
import java.util.List;

/**
 * 试卷分享数据封装
 * @author Guqier
 * @version 1.0
 * @date 2023/8/10 14:19
 */
@Data
public class TestPaperShareParam {

    @NotNull(message = "testPaperId不能为空")
    private Long testPaperId;// 试卷ID

    @NotNull(message = "teacherIds不能为空")
    private List<Long> teacherIds;// 教师ID列表

    @NotNull(message = "type不能为空")
    private Integer type;// 分享类型，0永久，1期限

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date enableTime;// 启用时间

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date disableTime;// 失效时间

}
